@extends('dashboard.createform')
@section('form')
	@section('title') 添加品牌 @endsection
	@section('form')
	<form action="{{isset($data) ? route('admin.anounces.update', $data) : route('admin.anounces.store')}}" method="post">
		@text(['name' => 'title', 'label' => '标题', 'default' => $data->title??''])
		@endtext
		@upload(['name' => 'cover', 'label' => '封面图', 'default' => $data->cover??'']) @endupload
		@textarea(['name' => 'content', 'label' => '公告内容', 'default' => $data->content??''])
		@endtextarea
			@text(['name' => 'expire_date', 'label' => '有效期至', 'default' => $data->expire_date->toDateString()??0, 'type' => 'date'])
		@endtext
		@isset($data) @method('PUT') @endisset
		@submit @endsubmit
	</form>
	@errmsg @enderrmsg
	@endsection
@endsection